<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html" encoding="ISO-8859-1" />
	<xsl:template match="/">
		<html>
			<title>Commande</title>
			<link href="../XSL/style.css" rel="stylesheet" type="text/css"
				media="screen" />
			<body>
				<h1>
					Commande
				</h1>
				<ul>
					<li>
						<b>ID Produit : </b>
						<xsl:value-of select="commande/idProduit" />
					</li>
					<li>
						<b>Quantité : </b>
						<xsl:value-of select="commande/quantite" />
					</li>
				</ul>

				<h2>Chèque</h2>
				<p align="justify">
					<table classe="gridtable">
						<tr>
							<th>ID</th>
							<th>Date d'émission</th>
							<th>Emis</th>
							<th>Montant</th>
							<th>Devise</th>
							<th>Ordre</th>
						</tr>
						<tr>
							<td>
								<xsl:value-of select="commande/cheque/@idCheque" />
							</td>
							<td>
								<xsl:value-of select="commande/cheque/@dateEmission" />
							</td>
							<td>

								<xsl:choose>
									<xsl:when test="commande/cheque/@emis = 'false'">
										Non
									</xsl:when>
									<xsl:otherwise>
										Oui
									</xsl:otherwise>
								</xsl:choose>

							</td>
							<td>
								<xsl:value-of select="commande/cheque/montant" />
							</td>
							<td>
								<xsl:value-of select="commande/cheque/@devise" />
							</td>
							<td>
								<xsl:value-of select="commande/cheque/ordre" />
							</td>
						</tr>
					</table>
				</p>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>